import java.util.Random;
import java.util.Scanner;

public class Test {
    /*public static void main(String[] args) {
        Random random = new Random(123);//随便写的一个数
        int num = random.nextInt();
        System.out.println(num);
    }*/


    /*public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n  = scanner.nextInt();
        System.out.println(n);
    }*/


    /*public static void main(String[] args) {
        System.out.println("     **     ");
        System.out.println("     **     ");
        System.out.println("************");
        System.out.println("************");
        System.out.println("    *  *    ");
        System.out.println("    *  *    ");
    }*/


    /*public static void main(String[] args) {
        System.out.println("Hello Nowcoder!");
    }*/


    /*public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        System.out.printf(".3lf\n", n);
    }*/


    /*public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        if(((year % 4 == 0)&&(year % 100 != 0))||(year % 400 == 0)){
            System.out.println(year+"是闰年");
        }else {
            System.out.println(year+"不是闰年");
        }
    }*/


    /*public static void isLeap(int year) {
        if(((year % 4 == 0)&&(year % 100 != 0))||(year % 400 == 0)){
            System.out.println(year+"是闰年");
        }else {
            System.out.println(year+"不是闰年");
        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        isLeap(year);
    }*/


    /*public static int sumInt(int x, int y){
        return x+y;
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int ret = sumInt(a,b);
        System.out.println(a+"+"+b+"的和："+ret);
    }*/


    /*public static void swap(int a, int b){
        int tmp = a;
        a = b;
        b = tmp;
    }
    public static void main(String[] args) {
         Scanner scanner = new Scanner(System.in);
         int a = scanner.nextInt();
         int b = scanner.nextInt();
         System.out.println("交换前："+a+" "+b);
         swap(a,b);
         System.out.println("交换后："+a+" "+b);
    }*/


    /*public static int add(int x,int y){
        return x+y;
    }

    public static float add(float x, float y){
        return x+y;
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int ret = add(a,b);
        System.out.println(a+"+"+b+"的和:"+ret);
        *//*float a1 = scanner.nextFloat();
        float b1 = scanner.nextFloat();
        int ret2 = add(a1, b1);*//*

        float a1 = scanner.nextFloat();
        float b1 = scanner.nextFloat();
        float ret1 = add(a1, b1);
        System.out.println(a1+"+"+b1+"的和："+ret1);
    }*/


    //求n的阶乘
    /*public static int fact(int n){
        if(n == 1){
            return 1;
        }
        return n*fact(n-1);
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        //例如:5!=5*4!=5*4*3!=……=5*4*3*2*1!=5*4*3*2*1
        int ret = fact(n);
        System.out.println(n+"的阶乘为："+ret);
    }*/


    //顺序打印每一位
    /*public static void print(int n){
        if(n < 10){
            System.out.print(n+" ");
            return ;
        }
        print(n/10);
        System.out.print(n%10+" ");
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        //例如:5!=5*4!=5*4*3!=……=5*4*3*2*1!=5*4*3*2*1
        print(n);
    }*/


    //递归求 1 + 2 + 3 + ... + 10
    /*public static int sum(int n){
        if(n==0){
            return 0;
        }else {
            return n + sum(n-1);
        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ret = sum(n);
        System.out.println(ret);
    }*/


    //把每一位的数值相加
    /*public static int print(int n){
        if(n<10){
            return n;
        }else {
            return n%10 + print(n/10);
        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ret = print(n);
        System.out.println(ret);
    }*/
}
